import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_core/src/get_main.dart';
class PageB extends StatelessWidget {
  const PageB({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('PageB')),
        body: Center(
            child: TextButton(
              onPressed: () {
                Get.back();
              },
              child: const Text('PageB'),
            )));
  }
}


